Skip to content

Comments

Chore: ruff, prek#88

Merged
pierrepo merged 6 commits intomainfrom
update-ruff
Feb 13, 2026
Merged

Chore: ruff, prek#88
pierrepo merged 6 commits intomainfrom
update-ruff

Conversation

@pierrepo
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs dependency and tooling updates as a maintenance/chore task. It updates ruff (0.14.14 → 0.15.1), prek (0.2.29 → 0.3.2), and bandit (1.9.2 → 1.9.3), adds a new pre-commit hook (typos spell checker), reorganizes ruff.toml linter configuration alphabetically, and refactors code in mddb.py to use a named constant.

Changes:

  • Updated development dependencies (ruff, prek, bandit) to newer versions
  • Added typos pre-commit hook for spell checking
  • Reorganized and expanded ruff linting rules in ruff.toml
  • Refactored hard-coded value to named constant in mddb.py

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
uv.lock Updated dependency lock file with new versions of ruff, prek, bandit, and other transitive dependencies
pyproject.toml Bumped minimum versions for dev dependencies (bandit, prek, ruff)
.pre-commit-config.yaml Updated ruff hook version and added typos spell checker hook
ruff.toml Reorganized lint rules alphabetically, added new rules (e.g., PL, FURB, LOG), and added PLR to ignore list
src/mdverse_scrapers/scrapers/mddb.py Extracted magic number 100 to named constant MAX_NUMBER_OF_DATASETS_IN_DEBUG

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"NPY", # NumPy-specific rules - ensures NumPy coding standards
"PD", # Pandas-vet - checks pandas-specific code practices
"PERF", # Perflint - performance-related checks
"PL", # Pylint rules
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The configuration enables "PL" (Pylint rules) on line 33 but then ignores "PLR" (Pylint recommendations) on line 45. This is contradictory because "PLR" is a subset of "PL". Either remove "PL" from the extended select list, or remove "PLR" from the ignore list to maintain consistency.

Copilot uses AI. Check for mistakes.
@pierrepo pierrepo merged commit ef8328e into main Feb 13, 2026
2 checks passed
@pierrepo pierrepo deleted the update-ruff branch February 13, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant